package com.chiang.mobilesafe.ui;


import com.chiang.mobilesafe.R;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.TextView;

public class SysOptimizeActivity extends Activity implements OnClickListener{
	
	private TextView tv_clear_sdcard;
	private TextView tv_clear_cache;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.sys_optimize);
		
		tv_clear_sdcard=(TextView) findViewById(R.id.tv_clear_sdcard);
		tv_clear_cache=(TextView) findViewById(R.id.tv_clear_cache);
		
		tv_clear_sdcard.setOnClickListener(this);
		tv_clear_cache.setOnClickListener(this);
		
	}

	@Override
	public void onClick(View v) {		
		switch(v.getId()){
		case R.id.tv_clear_sdcard:
			Intent clear_sdcard_intent=new Intent(SysOptimizeActivity.this,ClearSDCardActivity.class);
			startActivity(clear_sdcard_intent);
			
			break;
		case R.id.tv_clear_cache:
			Intent clear_cache_intent=new Intent(SysOptimizeActivity.this,ClearCacheActivity.class);
			startActivity(clear_cache_intent);
			
			break;
		}
	}
	
	

}
